class Man(object):
    __a = "123"  # 私有化属性

    def __init__(self):
        self.address = "山西"
        self.times = "明天"
        self.name = "张三"
        self.age = 0

    def go_home(self):
        print("回{},时间{}".format(self.address, self.times))

    def work(self):
        print("开始工作在{},时间{}".format(self.address, self.times))
        self.go_home()

    def test2(self):
        print("a{}".format(self.__a))

    @classmethod
    def test(cls):
        """
        类方法
        :return:
        """
        cls.__a = "456"

    @staticmethod
    def sss():
        """
        静态方法
        :return:
        """
        print("静态方法")
        # print(self.__a) 静态方法中不能出现self
        print(Man.__a)


# a = Man()
# a.address = "北京"
# a.times = "明天"
# a.gou_home()
#
# b = Man()
# b.gou_home()
#
# Man.test()
# a = Man()
# a.test2()

# Man.sss()
# a = Man()
# a.sss()
